<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('tipo_atributo/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?id='.$form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>
  <table>
     <thead>
          <tr>
              <th colspan="2"><h2 id="titulo_form"><?php echo $title?></h2></th>                            
          </tr>          
          <tr>
              <th colspan="2"><h1 id="titulo_form"><?php echo $answer?></h1></th>              
          </tr>          
      </thead>    
    <tbody>
      <?php echo $form ?>
    </tbody>
    <tfoot>
      <tr>
        <td colspan="2">
            <input type="submit" value="Guardar" />
        </td>
      </tr>
    </tfoot>
  </table>
</form>
